<?php

namespace sample\controller\fb;

use pmvc\mvc\security\SecurityUtil;
use pmvc\mvc\controller\BaseController;
use pmvc\mvc\Request;
use pmvc\mvc\Response;

class CurrentUserController
	extends BaseController {

	public function handleRequest(Request $request, Response $response) {
		$response->getModel()->merge(Array(
			"currentUser"	=> SecurityUtil::getCurrentUser($request)
		));
		return parent::getDefaultViewName();
	}

}

?>